package com.open.capacity.finance.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 公务用车登记表
 *
 * @author
 * @email
 * @date 2023-02-09 18:13:25
 */

@Data
public class SourceBaseUsecar implements Serializable {
    private static final long serialVersionUID = 1L;

    //行号
    private Integer rowNum;
    //错误消息
    private String errorMsg;


    private Long id;

    private String companyId;
    private String companyName;

    @Excel(name = "申请时间", format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    private String departmentId;

    @Excel(name = "使用部门")
    private String departmentName;

    @Excel(name = "用车人")
    private String userName;

    @Excel(name = "用车类型")
    private String carType;

    @Excel(name = "用车时间")
    private String usePeriod;

    @Excel(name = "出发地")
    private String placeStart;

    @Excel(name = "目的地")
    private String placeEnd;

    @Excel(name = "用车事由")
    private String useDescription;

    @Excel(name = "事由类型")
    private String descriptionType;

    @Excel(name = "批准人")
    private String audit;

    @Excel(name = "车牌号码")
    private String number;

    @Excel(name = "驾驶员")
    private String driver;

    @Excel(name = "区域")
    private String area;

    @Excel(name = "用车开始时间", format = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm")
    private Date timeStart;

    @Excel(name = "用车结束时间", format = "yyyy-MM-dd HH:mm")
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm")
    private Date timeEnd;

    private Integer kjnd;

    private Integer month;

    private Integer count;

    @Excel(name = "出车里程")
    private Long mileageStart;

    @Excel(name = "交车里程")
    private Long mileageEnd;

    @Excel(name = "行车里程")
    private Integer mileageUse;

    @Excel(name = "备注")
    private String remark;
}
